package com.test.designPattern.structuralType.flyweightPattern;

import lombok.extern.slf4j.Slf4j;

/**
 * ToolImpl
 *
 * @author wangjie
 * @version V1.0
 * @date 2020/4/7
 */
@Slf4j
public class ToolImpl implements Tool {

    private String name;

    public ToolImpl(String name){
        this.name = name;
    }

    @Override
    public void function() {

        log.info("这是{}",name);
    }
}
